package com.github.shuaidd.model.repository;

import org.activiti.app.domain.editor.ModelHistory;

import java.util.List;

public interface ModelHistoryEntityMapper {
    int deleteByPrimaryKey(String id);

    int insert(ModelHistory record);

    int insertSelective(ModelHistory record);

    ModelHistory selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(ModelHistory record);

    int updateByPrimaryKeyWithBLOBs(ModelHistory record);

    int updateByPrimaryKey(ModelHistory record);

    List<ModelHistory> findByModelIdAndRemovalDateIsNullOrderByVersionDesc(String modelId);
}
